Learn R Programming

ballgown (version 2.4.2)

pData<-: Replacement method for pData slot in ballgown objects

Description

Replacement method for pData slot in ballgown objects

Usage

pData(object) <- value
"pData"(object) <- value

Arguments

object
a ballgown object
value
the updated value for pData(x).

Examples

Run this code
# add "timepoint" covariate to ballgown object:
data(bg) # already contains pData
pData(bg) = data.frame(pData(bg), timepoint=rep(1:10, 2))
head(pData(bg))

Run the code above in your browser using DataLab